import request from '@/utils/request'

// 查询批单列表
export function listApprove(query) {
  return request({
    url: '/insurance/approve/list',
    method: 'get',
    params: query
  })
}

// 查询批单详细
export function getApprove(id) {
  return request({
    url: '/insurance/approve/' + id,
    method: 'get'
  })
}

// 新增批单
export function addApprove(data) {
  return request({
    url: '/insurance/approve',
    method: 'post',
    data: data
  })
}

// 修改批单
export function updateApprove(data) {
  return request({
    url: '/insurance/approve',
    method: 'put',
    data: data
  })
}

// 删除批单
export function delApprove(id) {
  return request({
    url: '/insurance/approve/' + id,
    method: 'delete'
  })
}

// 导出批单
export function exportApprove(query) {
  return request({
    url: '/insurance/approve/export',
    method: 'get',
    params: query
  })
}